/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Dao;

import Utils.Conexao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author william
 */
public class RelatoriosDAO {

    public static ResultSet rs;

    public static ResultSet relatorioCliente(String sql) throws SQLException {
        Connection con = Conexao.getConexao();
        PreparedStatement stmt = con.prepareStatement(sql);
        rs = stmt.executeQuery();
        return rs;
    }  
    
    public static ResultSet relatorioAdvogado(String sql) throws SQLException {
        Connection con = Conexao.getConexao();
        PreparedStatement stmt = con.prepareStatement(sql);
        rs = stmt.executeQuery();
        return rs;
    } 
    
    public static ResultSet relatorioAudiencia(String sql) throws SQLException {
        Connection con = Conexao.getConexao();
        PreparedStatement stmt = con.prepareStatement(sql);
        rs = stmt.executeQuery();
        return rs;
    } 
    
    public static ResultSet relatorioProcesso(String sql) throws SQLException {
        Connection con = Conexao.getConexao();
        PreparedStatement stmt = con.prepareStatement(sql);
        rs = stmt.executeQuery();
        return rs;
    } 
}
